package com.nf.service;

import com.nf.entity.Message;
import com.nf.entity.Student;
import com.nf.mapper.TestDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TestMessageImpl implements TestService{
    @Autowired
    private TestDao testDao;

    @Override
    public Integer testMessage(int account) {
        Student student = testDao.getStudent(account);
        return student.getAge();
    }
}
